﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using System.Data;
namespace Business
{
    public class QLDonGNBus
    {
        private QLDonGNDao NHDao = new QLDonGNDao();
        public string ChucVuBus(int username)
        {
            return NHDao.ChucVuDao(username);
        }
        public DataTable DanhSachHDBus(int user, string chucvu, string trangthai,string tgian)
        {
            return NHDao.DanhSachHDDao(user, chucvu, trangthai, tgian);
        }
        public DataTable DanhSachHDCBBus(int user, string chucvu, long timecurrent,string tgian)
        {
            return NHDao.DanhSachHDCBDao(user, chucvu, timecurrent, tgian);
        }
        public int CountHDCBBus(int user, string chucvu, long time)
        {
            return NHDao.CountHDCBDao(user, chucvu, time);
        }
        public string SounDefaultBus()
        {
            return NHDao.SounDefaultDao();
        }
        public DataTable SoundAllBus()
        {
            return NHDao.SoundAllDao();
        }
        public void updateSoundBus(string filname)
        {
            NHDao.updateSoungDao(filname);
        }
        
        public void updateBus(string xacnhan, string maHD)
        {
            NHDao.updateDao(xacnhan, maHD);
        }
        public DataSet selectAllHDBus(int user, string chucvu, string trangthai, string tgian)
        {
            return NHDao.selectAllHDDao(user, chucvu, trangthai, tgian);
        }
        public int countBillsBus(int user, string chucvu, string tinhtrang, DateTime date)
        {
            return NHDao.countBillsDao(user, chucvu, tinhtrang, date);
        }
        public int getTimeAgainBus()
        {
            return NHDao.getTimeAgainDao();
        }
        public int getTimeDelayBus()
        {
            return NHDao.getTimeDelayDao();
        }
        public void updateTimeAgainBus(string time)
        {
            NHDao.updateTImeAgainDao(time);
        }
        public void updateTimeDelayBus(string time)
        {
            NHDao.updateTimeDelayDao(time);
        }
        public int getCountNewBillCBBUS(int user, string chucvu, long time)
        {
            return NHDao.CountHDCBMoiDao(user, chucvu, time);
        }
        public void updateCountAgainCBBus(string ct)
        {
            NHDao.updateCountAgainDao(ct);
        }
        public int getCountAgainCBBus()
        {
            int count = NHDao.getCountAgianCBDao();
            return count;
        }
      }
}
